package com.zjitc.serviceedu.entity.subject;

import com.fasterxml.jackson.databind.introspect.AnnotationCollector;
import com.zjitc.serviceedu.service.impl.EduSubjectServiceImpl;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: ${赵诚挚}
 * @Date: 2024/9/20 15:19
 */
//tree一级分类
@Data
//1.根据返回数据创建相应的实体类
//2.两个实体类表示他们的关系
//3.封装
public class OneSubject {
    private long id;
    private String title;

    //一个一级分类里有多个二级分类
    private List<TwoSubject> children = new ArrayList<>();



}
